import Common from "../Common/common"
export default class Bubble extends Laya.Script{
	constructor(){
        super();
        Common.timeArray.push(this)
        Laya.timer.once(500,this,this.upward);
    }

   
    upward(){
        console.log(this);
        Laya.timer.frameLoop(1,this,()=>{
            // console.log(this);
            this.owner.top+=5;
            if(this.owner.top>=1920){
                this.owner.top=-1920;
            }
        })
    }
    
}